package com.algebra.util.annotation;

import com.algebra.util.sensitive.SensitiveSerializer;
import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * @author al
 * @date 2022/5/25 11:27
 * @description
 */
@Retention(RetentionPolicy.RUNTIME)
@JacksonAnnotationsInside
@JsonSerialize(
        using = SensitiveSerializer.class
)
public @interface FieldSensitive {
    String value();
}
